import { useEffect } from 'react';
import { SAVE_BREADCRUMB } from '@/reducers/common';
import { dispatchWithPromise } from '@/utils/util'
import welcomeImg from '@/assets/welcome.png'
import styles from './index.less'

export default () => {

    useEffect(() => {
        dispatchWithPromise({ type: SAVE_BREADCRUMB, data: ['欢迎页'] });
    }, [])

    return <div className={styles.welcome}>
        <img className={styles.welcomeImg} src={welcomeImg} alt='' />
    </div>
}